package com.xingmang.common.constant;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @auther: hansom
 * @Version: 1.0
 * @create 2023/4/21 16:56
 */
@Data
@ApiModel("分页实体")
@NoArgsConstructor
public class PageEntity<T> {
    @ApiModelProperty("每页大小")
    private Long size;
    @ApiModelProperty("当前页")
    private Long current;
    @ApiModelProperty("总条数")
    private Long total;
    @ApiModelProperty("数据")
    protected List<T> records;
}
